
#include "TK.h"
//#define N 2
int main(int argc,char* argv[]){
	Node* head = (Node*)malloc(sizeof(Node));
	head->next = NULL;
	Node* pend = head;
	int i = 1;
	while(i<argc-1)
	{
		Node* pnew = (Node*)malloc(sizeof(Node));
		pnew->next = NULL;
		pnew->data = *argv[i++];
		pend->next = pnew;
		pend = pnew;
	}
	head = head->next;//required! Or when "while(head)", cannot figure out the node "head"
	char n = *argv[i];	
	printf("%c\n",n);
	head = erase(head,n);
	while(head)
	{
		printf("%c ",head->data);
		head = head->next;	
	}
	printf("\n");
	return 0;
}
